﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using System.ComponentModel;
using System.Collections.Generic;
namespace WPFExcelReport
{
    public partial class TSKS03
    {
        public TSKS03()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VKSTSTELL();
            DataContext = MV;
            InitializeComponent();
        }  
       
        public override  void LOADALL()
        {

            dwData = TBMain.NewRow();
            dwData["KSTMANDANT"] = app.Mandant; 
            SResult = TMV.QKS02(dwData);
            foreach (DataRow row in SResult.Tables[0].Rows)
            {
                row["DES"] = Helpers.Helper.GetGB2312Value(row["KSTBEZ"].ToString()).Trim();
            }
            MergeData(SResult, false);
        } 
        public override void ManageCommand(object sender, RoutedEventArgs e)
        {
            if (IsManage)
            {
                LOADALL();
            }
            base.ManageCommand(sender, e);
        } 
    }

}
